package com.alvin.abp.common.constant;

public enum UserRoleType {
	ROLE_ADMIN("管理员"), 
	ROLE_MEMBER("会员"),
	ROLE_ANONYMOUS("访问人员");
	private String displayName;

	UserRoleType(String displayName) {
		this.displayName = displayName;
	}

	public String getName() {
		return this.name();
	}

	public static UserRoleType enumFor(String value) {
		try {
			return UserRoleType.valueOf(value);
		} catch (Exception e) {
			return null;
		}
	}
	public String getDisplayName(){
		return this.displayName;
	}
}
